package com.heima.model.wemedia.dtos;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.heima.model.dtos.PageRequestDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class WmNewsPageReqDto extends PageRequestDto {

    //状态
    private Integer status;
    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginPubdate;
    //结束时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endPubdate;
    //所属频道ID
    private Integer channelId;
    //关键字
    private String keyword;

}